﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace legends
{
     class Converter
    {
         public Converter()
         { 
         }

         public TileType ConvertTileType(String tileType)
         {
             switch (tileType)
             {
                 case "Nature": return TileType.Nature; break;
                 case "nature": return TileType.Nature; break;
                 case "building": return TileType.Building; break;
                 case "Building": return TileType.Building; break;
                 case "Place": return TileType.Place; break;
                 case "place": return TileType.Place; break;
                 case "Event": return TileType.Event; break;
                 case "event": return TileType.Event; break;
                 default: return TileType.Unspecified;             
             }

         }
    }
}
